package cn.smbms.service;

import cn.smbms.pojo.User;

import java.util.List;

public interface UserService {
    List<User> list(Integer pageNo, Integer pageSize, String username, Integer userRole);

    int count(String username, Integer userRole);

    boolean add(User user);

    User login(String userCode, String userPassword);

    User ucexist(String userCode);

    User findUserById(Integer id);

    boolean update(User user);
}
